package com.pipayshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pipayshop.domain.ShopCollection;
import com.pipayshop.domain.vo.ShopCommodityCollectionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xiaoqiu
 * @date 2024/9/20 15:03
 * @description
 */
public interface OnlineStoreShopCollectionMapper extends BaseMapper<ShopCollection> {

    List<ShopCommodityCollectionVo> selectByUserId(String userId);


    /**
     * 根据id 查询收藏商品数据
     * @param userId
     * @return
     */
    Integer selectAllCollectProductByUserId(@Param("userId") String userId);

    /**
     * 根据id 查询收藏商品
     * @param i
     * @param limit
     * @param userId
     * @return
     */
    List<ShopCommodityCollectionVo> selectCollectProductByUserId(@Param("page") Integer page, @Param("limit") Integer limit, @Param("userId") String userId);
}
